<template >
  <div class="page-100 login-register-part">
    <yd-cell-item>
      <img  slot="left" class="login-img" src="../../assets/loginxingyenum.png">

      <!--<input slot="right" type="number" placeholder="请输入手机号" maxlength="11" v-model="password">-->
      <yd-input slot="right" v-model="mobile" regex="mobile" placeholder="请输入手机号"></yd-input>

    </yd-cell-item>
    <yd-button  size="large" type="primary" @click.native="handleClick" style="background-color:#3cc8a8;color:white;height: 40px">确定</yd-button>

  </div>
</template>
<script>
export default {
  name: "loginPassword",
    data()
    {
        return {
            password:'',
        };

    },
    created(){//接受上个页面传值
      let mobile=this.$route.params.mobile;
      console.log(mobile);
    },
    methods: {
        async handleClick() {
            //取出值

            var data2 = JSON.parse(localStorage.getItem('center'));
            console.log(data2);
            console.log(data2.name);
        }

  }
};
</script>
<style lang='scss'>

</style>
